package edu.ncst.baseweb.mapper;

import edu.ncst.baseweb.dao.res.ResInfo;
import edu.ncst.baseweb.dao.res.ResRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ResRecordMapper extends BaseMapper<ResRecord>{
    void updateStateById(@Param("id")Integer id,@Param("state") Integer state);

    //通过预约id获取预约信息
    ResInfo getResInfoByResId(@Param("resId")Integer resId);


    ResRecord selectRecordsByUserIdAndResId(@Param("user_id") Integer userId, @Param("resId") Integer resId);

}
